package com.atguigu.gmall.common.config.executor;

import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;

@ConfigurationProperties(prefix = "app.pool")
@Data
public class ThreadPoolProperties {
    int corePoolSize = 4;
    int maximumPoolSize = 8;
    long keepAliveTime = 15;
    TimeUnit unit = TimeUnit.MINUTES;
    Integer queueSize = 4000;
}
